package com.grass.cropTradingCenter.common;

public enum ResultCode {
    SUCCESS(200, "成功"),
    NO_LOGIN(302, "用户未登录"),

    /**
     * 前端直接展示错误信息
     */
    OUTPUT_ERROR(5001, ""),
    SYSTEM_ERROR(500, ""),
    ;


    private int code;
    private String msg;

    ResultCode() {
    }

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
